Skip to content

fix(field): auto-merge in polygon mode and undo it in one step - #159

Merged
dustenhubbard merged 2 commits into
mainfrom
fix/auto-merge-undo-polygon
Oct 7, 2026
Merged

dustenhubbard merged 2 commits into
mainfrom
fix/auto-merge-undo-polygon

Conversation

@dustenhubbard

Copy link
Copy Markdown
Member

With auto-merge on, a closed trace drawn in polygon mode never merged into the same-name trace under it: the check for whether the new trace was created read a list the table refresh had already cleared. Scribble mode merged, but undo left two traces, since the draw and the merge each saved a state. Both modes now merge on overlap, selected or not, and one undo restores the original trace.

Closes #137
Closes #138

Auto-merge now finds the overlapping closed traces of the same name on the
section instead of the selection, and is reached from a right-click polygon too.
The draw and its merge are one undo step (#137, #138).
@dustenhubbard dustenhubbard added the reviewed A human authorized this merge (vcs-guard Gate 1 evidence) label Oct 7, 2026
@dustenhubbard
dustenhubbard merged commit 7b00760 into main Oct 7, 2026
7 checks passed
@dustenhubbard
dustenhubbard deleted the fix/auto-merge-undo-polygon branch October 7, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed A human authorized this merge (vcs-guard Gate 1 evidence)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-merge when tracing in polygon mode Undo following auto-merge should revert to original trace

1 participant